package com.example.basic.strings;

public class SubStringTest {

    public static void main(String[] args) {
        String str = "abcdefghij";
        System.out.println(str.length());
        str = str.substring(0,5);
        System.out.println(str);

        char[] temp = new char[32];
        for (int i = 0; i < temp.length; i++) {
            temp[i] = '0';
        }
        String str1 = String.valueOf(temp,0,10);
        System.out.println(str1);
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

//        long v = -1073741945;
        long v = -1;
        System.out.println(Long.toBinaryString(v));
        System.out.println(Long.MAX_VALUE);
    }

}
